package system_code.read_write;

import java.io.*;

public class demo3 {
    //字符流写文件
    public static void main(String[] args) throws IOException {
        OutputStream outputStream = new FileOutputStream("b.txt");
        Writer writer = new FileWriter("b.txt");
        writer.write("what do you mean?");
        writer.close();
        outputStream.close();
    }
}
